{% extends "base.html" %}
{% load i18n %}
{% load staticfiles %}
{% block title%}{% trans "luca_auth_login" %}{% endblock%}

{% block leftmenu %}
{% endblock %}
 	
	{% block content %}
	<div class="row">
        <div class="well col-md-5 center login-box">
            <div class="alert alert-info">
               {% trans "luca_auth_please_fill_form" %}
            </div>
            <form class="form-horizontal" action="/auth/process_login/" method="post">
            		{% csrf_token %}
                <fieldset>
                    <div class="input-group input-group-lg">
                        <span class="input-group-addon"><i class="glyphicon glyphicon-user red"></i></span>
                        <input type="text" name="username" class="form-control" placeholder="Username">
                    </div>
                    <div class="clearfix"></div><br>

                    <div class="input-group input-group-lg">
                        <span class="input-group-addon"><i class="glyphicon glyphicon-lock red"></i></span>
                        <input type="password" name="password" class="form-control" placeholder="Password">
                    </div>
                    <div class="clearfix"></div>
                    <br>
   {% if messages %}
   
	        {% for message in messages %}
	       		 <div class="alert alert-danger alert-error">
	        	 <a href="#" class="close" data-dismiss="alert">&times;</a>
	       			 <strong>Error!</strong> {{ message }}
	   			 </div>
	
	        {% endfor %}
    
		{% endif %}
                    <p class="center col-md-5">
                        <button type="submit" class="btn btn-primary">{% trans "luca_auth_login" %}</button>
                    </p>
                </fieldset>
            </form>
        </div>
        <!--/span-->
    </div>
 
 	{% endblock %}
